package day04;
//switch..case..
public class SwitchCaseDemo {
    public static void main(String[] args) {
        int num = 3;
        switch (num){
            case 1://if(num=1)
                System.out.println(111);
                break;
            case 2://以此为入口
                System.out.println(222);
                break;//跳出switch//中断
            case 3://名字不能重复
                System.out.println(333);
                break;
            default://所有case都未匹配是执行
                System.out.println(666);
        }
    }
}
